#if !defined(AFX_GFXPAGEIMAGE_H__C436A496_9C32_4CA1_B651_156F0C3646C3__INCLUDED_)
#define AFX_GFXPAGEIMAGE_H__C436A496_9C32_4CA1_B651_156F0C3646C3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GfxPage.h"

// GfxPageImage.h : header file
//

class CCurve;
class CULTool;
/////////////////////////////////////////////////////////////////////////////
// CProoPageImageDlg dialog

class CGfxPageImage : public CGfxPage
{

// Construction
public:
	CGfxPageImage(CWnd* pParent = NULL);   // standard constructor
// Dialog Data
	//{{AFX_DATA(CGfxPageImage)
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_GFX_PAGE_IMAGE };
#endif
	CComboBox	m_cbColorRank;
	BOOL	m_bDisplay;
	BOOL	m_bPrint;
	BOOL	m_bSave;
	double	m_fLeftValue;
	double	m_fRightValue;
	double	m_fEndPosition;
	double	m_fStartPosition;
	CString	m_strName;
	CString m_strName2;
	CString	m_strUnit;
	CMFCColorButton m_btnLightColor;
	CMFCColorButton m_btnDarkColor;
	UINT	m_lTimeDelay;
	UINT	m_iTimeInter;
	long	m_lDepthOffset;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGfxPageImage)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
// Implementation
protected:
	CString DoubleToString(double f);

	// Generated message map functions
	//{{AFX_MSG(CGfxPageImage)
	afx_msg void OnChangeEditEndpos();
	afx_msg void OnChangeEditStartpos();
	afx_msg void OnChangeDepthoffset();
	afx_msg void OnKillFocusDepthOffset();
	afx_msg void OnKillFocusLeftValue();
	afx_msg void OnChangeEditName();
	afx_msg void OnKillFocusRightValue();
	afx_msg void OnChangeEditUnit();
	afx_msg void OnKillfocusEditEndpos();
	afx_msg void OnKillfocusEditStartpos();
	virtual BOOL OnInitDialog();
	afx_msg void OnDarkcolor();
	afx_msg void OnLightcolor();
	afx_msg void OnDestroy();
	afx_msg void OnChangeEditTimeinter();
	afx_msg void OnChangeEditTimedelay();
	afx_msg void OnKillfocusEditTimeinter();
	afx_msg void OnKillfocusEditTimedelay();
	afx_msg void OnColor();
	afx_msg void OnColorr();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	void RefreshData();
	void InitCurve();
	int ChangeColorToNumber(COLORREF crColor);
	COLORREF ChangeNumberToColor(int nValue);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GFXPAGEIMAGE_H__C436A496_9C32_4CA1_B651_156F0C3646C3__INCLUDED_)
